//
//  MotionData.h
//
//  Created by Michael Bethany on 5/13/10.
//  Copyright 2010 __PicklePumpers__. All rights reserved.
//
//	Handles retrieving Sudden Motion Sensor data and storing it.
//	Mostly it just adds an event to the way data retrieval works. 
//	It still has to poll but hides that from you.
//

#import <Cocoa/Cocoa.h>
extern NSString * const PPIMotionNotification;

@interface MotionData : NSObject 
{
	int smsType;
	BOOL enabled;
	BOOL valid;
	NSTimer *readTimer;
	float timerFrequency;
	int X;
	int Y;
	int Z;
}

-(BOOL)enabled;
-(void)setEnabled:(BOOL)enabledValue;
-(BOOL)valid;
-(float)timerFrequency;
-(void)setTimerFrequency:(float)frequency;
-(int)X;
-(int)Y;
-(int)Z;

@end
